import service from '@/utils/request'

// @Tags CusCustomization
// @Summary 创建cusCustomization表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusCustomization true "创建cusCustomization表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /cusCustomization/createCusCustomization [post]
export const createCusCustomization = (data) => {
  return service({
    url: '/cusCustomization/createCusCustomization',
    method: 'post',
    data
  })
}

// @Tags CusCustomization
// @Summary 删除cusCustomization表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusCustomization true "删除cusCustomization表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cusCustomization/deleteCusCustomization [delete]
export const deleteCusCustomization = (params) => {
  return service({
    url: '/cusCustomization/deleteCusCustomization',
    method: 'delete',
    params
  })
}

// @Tags CusCustomization
// @Summary 批量删除cusCustomization表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除cusCustomization表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cusCustomization/deleteCusCustomization [delete]
export const deleteCusCustomizationByIds = (params) => {
  return service({
    url: '/cusCustomization/deleteCusCustomizationByIds',
    method: 'delete',
    params
  })
}

// @Tags CusCustomization
// @Summary 更新cusCustomization表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusCustomization true "更新cusCustomization表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /cusCustomization/updateCusCustomization [put]
export const updateCusCustomization = (data) => {
  return service({
    url: '/cusCustomization/updateCusCustomization',
    method: 'put',
    data
  })
}

// @Tags CusCustomization
// @Summary 用id查询cusCustomization表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.CusCustomization true "用id查询cusCustomization表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /cusCustomization/findCusCustomization [get]
export const findCusCustomization = (params) => {
  return service({
    url: '/cusCustomization/findCusCustomization',
    method: 'get',
    params
  })
}

// @Tags CusCustomization
// @Summary 分页获取cusCustomization表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取cusCustomization表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /cusCustomization/getCusCustomizationList [get]
export const getCusCustomizationList = (params) => {
  return service({
    url: '/cusCustomization/getCusCustomizationList',
    method: 'get',
    params
  })
}
